package org.tity.test.module.user.controller;

import static org.junit.Assert.assertTrue;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import org.tity.StartUpApplication;
import org.tity.ends.transfer.Result;
import org.tity.test.config.BasicTester;

@RunWith(SpringRunner.class)
@SpringBootTest(classes = StartUpApplication.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
public class UserControllerTester extends BasicTester {
	
    @Test
    public void test_all() throws Exception {
    	Result r=doEndsControllerTest("user/list","id","0");
    	assertTrue(r.success());
    }
    
    
    
    public static void main(String[] args) {
    	Result r=null;
    	
    	r=doFastEndsTest("user/list",
    			"account","lfj","name","李方捷",
    			"id","908");
    	
//    	r=doFastEndsTest("user/wf-demo",
//    			"account","lfj","name","李方捷",
//    			"id","908");
 
	}
}
